{% extends 'base.html' %}

{% block content %}
<label >搜索结果:</label>

<table  class="table table-hover">
  <thead>
    <tr>
      <th scope="col">#</th>
      <th scope="col">Movie</th>
      <th scope="col">Year</th>
      <th scope="col">Notes</th>
    </tr>
  </thead>

  <tbody>
  {% if results %}

     {% for movie in  results%}
    <tr>
      <th scope="row">{{movie.id}}</th>
      <td>{{ movie.title }}</td>
      <td>{{ movie.year }}</td>
      <td> </td>
    </tr>
   {% endfor %}
  </tbody>
</table>



{% else %}
    <p>没有找到相关结果。</p>
{% endif %}

{% endblock %}